//
//  BKColleageHeaderView.m
//  baokaodaxue
//
//  Created by dangyangyang on 15/6/3.
//  Copyright (c) 2015年 宏图教育. All rights reserved.
//

#import "BKColleageHeaderView.h"

@implementation BKColleageHeaderView


- (void)awakeFromNib{

    self.layer.borderWidth = 1;
    self.layer.borderColor = [[UIColor colorWithRed:46/255.0 green:152/255.0 blue:226/255.0 alpha:1.0] CGColor];
    
}

// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
    CGContextRef context = UIGraphicsGetCurrentContext();
    CGContextSetRGBStrokeColor(context, 46/255.0, 152/255.0, 226/255.0, 1.0);//线条颜色
    CGContextSetLineWidth(context, .5);
    
    CGFloat width = rect.size.width/self.subviews.count;
    for (int i = 1; i < self.subviews.count; i ++) {
        CGContextMoveToPoint(context, width*i, 0);
        CGContextAddLineToPoint(context, width*i,rect.size.height);
        CGContextStrokePath(context);
    }
    
}


@end
